package com.infolab.aims.web.form;

import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;

import org.apache.commons.collections.FactoryUtils;
import org.apache.commons.collections.list.LazyList;

import com.infolab.aims.common.bean.AbstractForm;
import com.infolab.aims.domain.SystemAccessRight;
import com.infolab.aims.domain.SystemRole;

public class SystemRoleForm  extends AbstractForm {
	
	@Valid private SystemRole systemRole = new SystemRole();
	
	private List<SystemAccessRight> systemAccessRight = LazyList.decorate(new ArrayList(),
		      FactoryUtils.instantiateFactory(SystemAccessRight.class));

	
	private List<String> selSystemAccessRight = LazyList.decorate(new ArrayList(),
		      FactoryUtils.instantiateFactory(String.class));

	public Integer departmentId;

	public SystemRole getSystemRole() {
		return systemRole;
	}


	public void setSystemRole(SystemRole systemRole) {
		this.systemRole = systemRole;
	}


	public List<SystemAccessRight> getSystemAccessRight() {
		return systemAccessRight;
	}


	public void setSystemAccessRight(List<SystemAccessRight> systemAccessRight) {
		this.systemAccessRight = systemAccessRight;
	}


	public List<String> getSelSystemAccessRight() {
		return selSystemAccessRight;
	}


	public void setSelSystemAccessRight(List<String> selSystemAccessRight) {
		this.selSystemAccessRight = selSystemAccessRight;
	}


	public Integer getDepartmentId() {
		return departmentId;
	}


	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	
}
